#include<stdio.h>
int main()
{
	int f = 0, g = 0, j = 0, k = 0, l = 0;
	int n;
	scanf("%d", &n);
	if (n < 5)
	{
		printf("");
	}
	else
	{
		int i;
		for (i = 1; i <= n; i++)
		{
			int a;
			scanf("%d ", &a);
			int f = 0, g = 0, h = 0, j = 0, k = 0, l = 0;
			if (a >= 90)
			{
				f++;
				
			}
			else if (a <= 80 && a < 90)
			{
				g++;
				
			}
			else if (a >= 70 && a < 80)
			{
				j++;
				
			}
			else if (a >= 60 && a < 70)
			{
				k++;
				
			}
			else
			{
				l++;
				
			}
		}

	}

	printf("%d", f);
	printf("%d", g);
	printf("%d", j); 
	printf("%d", k); 
	printf("%d", l);
	return 0;

}